@layout("/common/_form.html",{js:["/assets/modular/rw/banner/banner_add.js"]}){
<style>
    #showImage{ margin-top:15px;}
    #showImage img{ max-height: 300px; max-width: 100%;}
</style>
<form class="layui-form" id="bannerForm" lay-filter="bannerForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">banner背景图信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input id="bannerId" name="id" value="${bannerId}" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">banner背景图<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input type="hidden" id="imageId" name="imageId" class="layui-input">
                            <button type="button" class="layui-btn layui-btn" id="imageBtn"><i class="fa fa-plus"></i> 选择图片</button>
                            <div id="showImage"></div>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">类型</label>
                        <div class="layui-input-block">
                            <select name="type" lay-verify="required">
                                <option value="0">首页视频区</option>
                                <option value="1">品牌理念</option>
                                <option value="2">企业资讯</option>
                                <option value="3">招商加盟</option>
                                <option value="4">关于我们</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>
</form>
@}
